package com.lry.basic.jni;

/**
 * @author:刘仁有
 * @desc:
 * @email:953506233@qq.com
 * @data:2019/7/5
 */
public class JniThread {
    static{
        System.loadLibrary("JniThread");
    }
    //java ->.class ->.h ->start.c->libJniThread.so
    public static void main(String[] args) {
        JniThread t = new JniThread();
        t.start();
    }
    //这个方法被c回调
    public void run(){
        System.out.println("im java thread");
    }
    private native void start();


}
